{% load admin_urls %}
{# This template can be used for both scanner results and scanner query results. Keep it generic. #}

{% if obj.can_report_feedback %}
  <button
    class="button report-false-positive-button"
    formaction="{% url handlefalsepositive_urlname obj.pk %}"
  >
    False positive
  </button>
  &nbsp;
  <button class="button default" formaction="{% url handletruepositive_urlname obj.pk %}">
    True positive
  </button>
  &nbsp;
  <button
    class="button secondary"
    formaction="{% url handleinconclusive_urlname obj.pk %}"
    title="Useful when the scanner result is a true positive but the add-on is not malicious"
  >
    Inconclusive
  </button>
{% elif obj.can_revert_feedback %}
  <button class="button default" formaction="{% url handlerevert_urlname obj.pk %}">
    Revert report
  </button>
{% endif %}
